package v1

import (
	"Im/server/common/model"
	"Im/server/util"

	"github.com/gin-gonic/gin"
)

type MsgFri struct {
	ApiBaseVerify
}

// 消息
func (s MsgFri) MsgList(c *gin.Context) {
	id := c.DefaultPostForm("id", "")
	msg := new(model.MessageModel)
	data, err := msg.NewMsg(util.StrToUint64(id), nil)
	if err != nil {
		s.Error(0, "", "错误", c)
	} else {
		s.Succee(data, c)
	}
	return
}
